//---------------------------------------------------------------------------

#ifndef MainFormH
#define MainFormH
//---------------------------------------------------------------------------
#include <System.Classes.hpp>
#include <Vcl.Controls.hpp>
#include <Vcl.StdCtrls.hpp>
#include <Vcl.Forms.hpp>
#include "YbCommDevice.h"
#include "MyThread.h"
#include <Vcl.ComCtrls.hpp>
//---------------------------------------------------------------------------
class TForm1 : public TForm
{
__published:	// IDE-managed Components
	TYbCommDevice *YbCommDevice1;
	TButton *Button1;
	TMemo *InfoMemo;
	TButton *StartStop;
	TButton *MemoSave;
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall StartStopClick(TObject *Sender);
	void __fastcall YbCommDevice1CommNotify(TObject *Sender, int NotifyType);
	void __fastcall MemoSaveClick(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TForm1(TComponent* Owner);

	TMyThread*	Thread1;
};
//---------------------------------------------------------------------------
extern PACKAGE TForm1 *Form1;
extern int condition;
//---------------------------------------------------------------------------
#endif
